package live.yanxiaohui.springboot.controller.consumer;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @Description todo
 * @CSDN https://blog.csdn.net/yxh13521338301
 * @Author： yanxh<br>
 * @Date 2020-06-28 17:53<br>
 * @Version 1.0<br>
 */
@Component
public class SmsConsumer {

    @RabbitListener(queues = "queue_sms")
    @RabbitHandler
    public void consumer(String msg) throws Exception {
        System.out.println("短信消费消息：" + msg);
    }

}
